{% extends "base.html" %}

{% block title %}新用户注册 - {{ super() }}{% endblock %}

{% block content %}
    <style>
        .register_table td{ line-height: 200%; border-top: 1px dotted #444; }
    </style>
    <form action="" method="post">
        <table class="register_table" cellspacing="0">
            <tr>
                <td align="right">用户名：</td>
                <td>
                    <input type="text" name="username" minlength="3" maxlength="15" pattern="^[a-z_]\w+$" required>
                    <span style="font-size: 12px; color: #999;">只能是字母、数字、下划线，不能以数字开头</span>
                </td>
            </tr>
            <tr>
                <td align="right">密码：</td><td><input type="password" name="password" minlength="6" maxlength="20" required></td>
            </tr>
            <tr>
                <td align="right">密码确认：</td><td><input type="password" name="password_confirm" minlength="6" maxlength="20" required></td>
            </tr>
            <tr>
                <td align="right" valign="top">验证码：</td>
                <td valign="top">
                    <input type="text" name="captcha" maxlength="4" required><img src="/captcha" align="top">
                </td>
            </tr>
            <tr>
                <td align="right"></td><td><input type="submit" value="注册"></td>
            </tr>
        </table>

    </form>
{% endblock %}
